/*
 * $Id: Pair.java 15 2013-05-16 05:43:09Z antonyhands@gmail.com $
 */
package ru.olympus.antonyhands.ao.util;

import java.io.Serializable;

/**
 * @author AntonyHands
 * @since 14.02.2012
 */
public class Pair<T, F> implements Serializable
{
    private static final long serialVersionUID = 4712888728407896446L;

    private T key;
    private F value;

    protected Pair()
    {
        // такой конструктор возможен
    }

    protected Pair(T key, F value)
    {
        this.key = key;
        this.value = value;
    }

    public void setKey(T key)
    {
        this.key = key;
    }

    public void setValue(F value)
    {
        this.value = value;
    }

    public T getKey()
    {
        return key;
    }

    public F getValue()
    {
        return value;
    }
}
